// 管理者
const admin = (act) => {
	let menu = [];
	menu.push({
		text: "统计",
		pagePath: "/pages/plan/plan",
		iconPath: "static/tabs/task.png",
		selectedIconPath: "static/tabs/task-1.png",
	})
	menu.push({
		text: "我的",
		pagePath: "/pages/manager/manager",
		iconPath: "static/tabs/mine.png",
		selectedIconPath: "static/tabs/mine-1.png",
	})
	return menu;
}

// 司机
const driver = (act) => {
	let menu = [];
	menu.push({
		text: "签到",
		pagePath: "/pages/sign/sign",
		iconPath: "static/tabs/task.png",
		selectedIconPath: "static/tabs/task-1.png",
	})
	menu.push({
		text: "统计",
		pagePath: "/pages/order/order",
		iconPath: "static/tabs/table.png",
		selectedIconPath: "static/tabs/table-1.png",
	})
	menu.push({
		text: "我的",
		pagePath: "/pages/driver/driver",
		iconPath: "static/tabs/mine.png",
		selectedIconPath: "static/tabs/mine-1.png",
	})
	return menu;
}

//业务员
const user = (act) => {
	let menu = [];
	menu.push({
		text: "电子路单",
		pagePath: "/pages/count/count",
		iconPath: "static/tabs/order.png",
		selectedIconPath: "static/tabs/order-1.png",
	});
	menu.push({
		text: "出站安检",
		pagePath: "/pages/check/check",
		iconPath: "static/tabs/safe.png",
		selectedIconPath: "static/tabs/safe-1.png",
	});
	menu.push({
		text: "我的",
		pagePath: "/pages/mine/mine",
		iconPath: "static/tabs/mine.png",
		selectedIconPath: "static/tabs/mine-1.png",
	})
	return menu;
}

module.exports = {
	user,
	admin,
	driver,
}